package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.EquipmentDiscard;
import com.example.sls.dao.logistics.EquipmentDiscardDao;
import com.example.sls.service.intserfaces.logistics.EquipmentDiscardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备报废记录表(EquipmentDiscard)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:10
 */
@Service
public class EquipmentDiscardServiceImpl implements EquipmentDiscardService {
  @Autowired
  EquipmentDiscardDao equipmentDiscardDao;

  @Override
  public EquipmentDiscard queryById(Integer id) {
    return equipmentDiscardDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return equipmentDiscardDao.deleteById(id);
  }

  @Override
  public int update(EquipmentDiscard equipmentDiscard) {
    return equipmentDiscardDao.update(equipmentDiscard);
  }

  @Override
  public int insert(EquipmentDiscard equipmentDiscard) {
    return equipmentDiscardDao.insert(equipmentDiscard);
  }

  @Override
  public long count() {
    return equipmentDiscardDao.count();
  }

  @Override
  public List<EquipmentDiscard> queryAllByLimit(EquipmentDiscard equipmentDiscard, Integer pageSize, Integer offset) {
    return equipmentDiscardDao.queryAllByLimit(equipmentDiscard, pageSize, offset);
  }
}
